Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat Implement fetch-database.ts #788

Merged
merged 12 commits into from
Sep 6, 2021

Conversation

hanihusam
Copy link
Contributor

@hanihusam hanihusam commented Aug 31, 2021

Closes #784

Description

Implement fetch-database.ts to fetch from https://kcov.id/wbw-database

@netlify
Copy link

netlify bot commented Aug 31, 2021

✔️ Deploy Preview for wargabantuwarga ready!

🔨 Explore the source changes: cad0913

🔍 Inspect the deploy log: https://app.netlify.com/sites/wargabantuwarga/deploys/613648ab4a50cf0007889712

😎 Browse the preview: https://deploy-preview-788--wargabantuwarga.netlify.app

@hanihusam hanihusam marked this pull request as ready for review September 1, 2021 07:19
@hanihusam
Copy link
Contributor Author

Can you help me with this one, Mas @zainfathoni?

due to the complexity of mocking fetch
that hinders us from testing fetch-database.ts
@codecov
Copy link

codecov bot commented Sep 6, 2021

Codecov Report

Merging #788 (cad0913) into main (9daefaa) will increase coverage by 1.38%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #788      +/-   ##
==========================================
+ Coverage   84.91%   86.30%   +1.38%     
==========================================
  Files         134      134              
  Lines        1425     1438      +13     
  Branches      455      458       +3     
==========================================
+ Hits         1210     1241      +31     
+ Misses        211      193      -18     
  Partials        4        4              
Impacted Files Coverage Δ
etc/fetchers/fetch-database.ts 100.00% <100.00%> (ø)
etc/fetchers/utils.ts 100.00% <0.00%> (+5.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9daefaa...cad0913. Read the comment docs.

while asserting the expected result through the mock file
since it's relatively faster than fetchSheets, at least for now
since fetchWbw() is an IIFE (Immediately Invoked Function Expression)
which makes it harder to test
while returning not so much value to the stability of the code
since fetchWbw() is an IIFE (Immediately Invoked Function Expression)
which makes it harder to test
while returning not so much value to the stability of the code
Copy link
Member

@zainfathoni zainfathoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

Thanks for working on the implementation, @hanihusam! 🙏

@zainfathoni zainfathoni added automerge To be merged automatically once all the requirements are fulfilled need-perf-check Trigger Lighthouse-CI check labels Sep 6, 2021
@zainfathoni zainfathoni added this to the Further Optimizations milestone Sep 6, 2021
@kodiakhq kodiakhq bot merged commit b7d3602 into kawalcovid19:main Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge To be merged automatically once all the requirements are fulfilled need-perf-check Trigger Lighthouse-CI check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement fetch-database.ts to fetch from https://kcov.id/wbw-database
2 participants